package yang.yu.sunny.infra.elasticsearch;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.elasticsearch.client.Client;

/**
 * Created by yyang on 16/4/11.
 */
public abstract class AbstractSearcher {

    private Client client;

    private ObjectMapper objectMapper = new ObjectMapper();

    public AbstractSearcher(Client client) {
        this.client = client;
    }

    public Client getClient() {
        return client;
    }

    public ObjectMapper getObjectMapper() {
        return objectMapper;
    }
}
